package com.ailink.design.pattern.strategy;

import com.ailink.design.pattern.strategy.impl.FlyNoWay;

/**
 * Created by Administrator on 2018/9/21
 */
public class BigYellowDuck extends Duck {
    public BigYellowDuck() {
        super();
        super.setFlyingStrategy(new FlyNoWay());
    }

    @Override
    public void display() {
        System.out.println("我声音很大，全身发黄");
    }
}
